package com.njtoyo.taxi.admin.mapper.secondary.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.secondary.enums.SystemSensitiveOperationObjectType;
import com.njtoyo.taxi.admin.mapper.secondary.enums.SystemSensitiveOperationVerifyMethod;
import com.njtoyo.taxi.admin.mapper.secondary.enums.SystemSensitiveOperationVerifyMode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SystemSensitiveOperation对象", description = "")
public class SystemSensitiveOperation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "操作标识")
    private String operationName;

    @ApiModelProperty(value = "操作名称")
    private String operationDesc;

    @ApiModelProperty(value = "路径")
    private String routeAction;

    @ApiModelProperty(value = "是否验证开启")
    private Boolean isVerifyOpen;

    @ApiModelProperty(value = "验证对象")
    private SystemSensitiveOperationObjectType verifyObjectType;

    @ApiModelProperty(value = "授权对象信息id")
    private Long assignedVerifyObjectId;

    @ApiModelProperty(value = "验证模式")
    private SystemSensitiveOperationVerifyMode verifyMode;

    @ApiModelProperty(value = "验证方法。")
    private SystemSensitiveOperationVerifyMethod verifyMethod;

    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    @ApiModelProperty(value = "无需验证的管理员，格式：[1,2]")
    private String ignoreAdmin;
}
